package com.ostrich.note;

import android.app.Application;
import android.provider.Settings;
import android.util.Log;

import com.blankj.utilcode.util.SPUtils;


public class App extends Application {
    public static App instance;
    @Override
    public void onCreate() {
        super.onCreate();
        getAndroidID();
        instance = this;
    }
    public  String getAndroidID() {
        String id = Settings.Secure.getString(getContentResolver(),Settings.Secure.ANDROID_ID);
        SPUtils.getInstance().put("android_id",id);
        return id == null ? "" : id;

    }
}
